﻿ALTER TABLE [dbo].[PublicMessages]
    ADD CONSTRAINT [FK_PublicMessages_Users] FOREIGN KEY ([UserId]) REFERENCES [dbo].[Users] ([UserId]) ON DELETE CASCADE ON UPDATE CASCADE;


GO
ALTER TABLE [dbo].[PublicMessages] NOCHECK CONSTRAINT [FK_PublicMessages_Users];

